package com.kafka.model;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName TcpServerConfig
 * @Description TODD
 * @Author Jesson
 * @Date 2019/1/15 9:15
 * @Version 1.0
 **/
@Data
@Configuration
public class TcpServerConfig {
    @Value("${igaps.application.name}")
    private String appname;

    @Value("${igaps.channel.id}")
    private String channelid;

    @Value("${net.port}")
    private int port;

    @Value("${net.head.length}")
    private int headlength;

    @Value("${net.head.codetype}")
    private String headcodetype;

    @Value("${net.head.endian}")
    private String endian;

    @Value("${net.head.include.self}")
    private boolean headincself;

    @Value("${net.head.startpos}")
    private int headstartpos;

    @Value("${net.head.copylen}")
    private int headcopylen;

    @Value("${net.timeout.client}")
    private int timeoutclient;
}
